package com.lezhu.plugin;

import org.apache.cordova.CallbackContext;
import org.apache.cordova.PluginResult;

/**
 * Created by zhaoshengbo on 16/2/17.
 */
public class LZNotifyListener {

    private static CallbackContext callbackContext = null;

    public static void sendNotityMessage(String content) {
        if (callbackContext == null) {
            return;
        }
        PluginResult result = new PluginResult(PluginResult.Status.OK, content);
        result.setKeepCallback(true);
        callbackContext.sendPluginResult(result);
    }

    public static void setCallbackContext(CallbackContext callbackContext) {
        LZNotifyListener.callbackContext = callbackContext;
    }



}
